﻿using UnityEngine;
using System.Collections;

public class OnClickActiveObj : MonoBehaviour
{
   public GameObject [] gameObjects;
   public bool activeObject;

   void OnTouchDown(Vector3 hitPoint)
   {
      foreach (GameObject child in gameObjects)
      {
         child.SetActive(activeObject);
      }
   }
}
